package com.qinglei.recoup.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 床位健康数据日详细表
 *
 * @author syp
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_bed_health_daily_data")
@ApiModel(value = "BedHealthDailyData对象", description = "床位健康数据日详细表")
public class BedHealthDailyData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "床位ID")
    private Integer bedId;

    @ApiModelProperty(value = "统计日期")
    private LocalDate statisticsDate;

    @ApiModelProperty(value = "睡眠数据 1-深睡 2-浅睡 3-清醒 4-离床 json数组，720个数据")
    private String sleepData;

    @ApiModelProperty(value = "心率数据 json数组，720个数据")
    private String heartPhaseData;

    @ApiModelProperty(value = "呼吸率数据 json数组，720个数据")
    private String breathPhaseData;

    @ApiModelProperty(value = "体动数据 json数组，24个数据")
    private String turnOverData;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime modifyTime;

    @ApiModelProperty(value = "睡眠状态截取起始索引")
    private Integer cutStIdx;

    @ApiModelProperty(value = "睡眠状态截取结束索引")
    private Integer cutEdIdx;

}
